{% extends 'base.html'%}
{%block nav%}
<nav>
  <ul>
    {% for menu in menus %}
        <li>{{menu}}</li>
    {% end %}
  </ul>
</nav>

{% end %}

{% block content %}
    {% if error_msg %}
        <span class="error"> {{error_msg}}</span>
        {% else %}
            <span>您来对地方了</span>
    {% end %}
{% end %}

{% block footer%}
    {% if age<18 %}
        <span class="error">未成年禁入</span>
        {% elif age>60 %}
        <span class="warn">老年人禁入</span>
        {% else%}
        <span class="success">正常</span>
    {% end %}
{%end%}